package com.tps.cloud.system.mapper;

import com.tps.cloud.mapper.CustomBaseMapper;
import com.tps.cloud.system.entity.SystemUser;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户管理 Mapper接口
 */
@Mapper
public interface SystemUserMapper extends CustomBaseMapper<SystemUser> {

    default SystemUser selectByUsername(String username) {
        return selectOne(SystemUser::getUsername, username);
    }
}
